//
//  YQDetailCell.m
//  OverseasImmigration
//
//  Created by yuqin on 2019/6/8.
//  Copyright © 2019年 yuqin. All rights reserved.
//

#import "YQDetailCell.h"

@implementation YQDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.detaiView.layer.cornerRadius = 8;
    self.detaiView.layer.masksToBounds = YES;
}

- (void)setDetailModel:(YQBigVisaDetailModel *)detailModel {
    [self.icon sd_setImageWithURL:[NSURL URLWithString:detailModel.image]];
    self.dateLab.text = [NSString stringWithFormat:@"%@天左右",detailModel.date];
    // 1:需要面试 2：不需要 3：指纹采集 4:采集生物信息
    NSDictionary *dict = @{@"1":@"需要面试",
                           @"2":@"不需要",
                           @"3":@"指纹采集",
                           @"4":@"采集生物信息"
                           };
    self.isNeedLab.text = [dict objectForKey:detailModel.interview];
    self.priceLab.text = [NSString stringWithFormat:@"￥%@万",detailModel.price];
    NSArray *titleArr = [detailModel.detail componentsSeparatedByString:@")"];
    self.visaWayLab.text = [NSString stringWithFormat:@"%@)",titleArr[0]];
//    @"十年有效，多次入境，最长停留180天"
//    self.describeLab.text = titleArr[1];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
